<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <style>
        *{margin:0;padding: 0; box-sizing: border-box;}
        body{
            background-color: #030D19;
        }
        .box{
            padding: 0  30px; 
            background-color: #021A3A;
            position: absolute;
            left: 150px;
            top: 50px;
            height: 30px;
        }
        .box span{
            border-bottom: 1px solid rgba(255, 255, 255,.7);
            border-top: 1px solid rgba(255, 255, 255,.7);
            position: relative;
            z-index: 3;
            height: 100%;
            display: block;
            display: flex;
            align-items: center;
            color: #fff;
        }   
        .out{
            position: absolute;
            top: 0;
            height: 100%;
            background-color: #fff;
            width: 40px;
        }
        .left-out{
            left: -10px;
            clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 25% 100%, 0% 50%);
        }
        .right-out{
            right: -10px;
            clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
        }
        .in{
            position: absolute;
            top: 50%;
            height: calc(100% - 1px);
            background-color: #021A3A;
            width: 40px;
            transform: translate(-50%,-50%);
        }
        .left-in{
            left: calc(50% + 1px);
            clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 25% 100%, 0% 50%);
        }
        .right-in{
          
            left: calc(50% - 1px);
            clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
        }
    </style>
</head>
<body>
    <div class="box">
        <span>快乐星球</span>
        <div class="out left-out">
            <div class="in left-in"></div>
        </div>

        <div class="out right-out">
            <div class=" in right-in"></div>
        </div>
    </div>
</body>
</html>